#include "stdafx.h"
#include <commctrl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windowsx.h>


#include <winioctl.h>
#include <dbt.h>
#include <initguid.h>

__declspec(dllexport) bool __cdecl USB_FindTheHID (int a_VendorID, int a_ProductID, int  *a_pErrorData);
__declspec(dllexport) int __cdecl USB_Set_Report (BYTE *data, int len, int  *a_pErrorData);

__declspec(dllexport) int __cdecl USB_Out_EP4 (BYTE *data, int len);

__declspec(dllexport) int __cdecl USB_Get_Report (BYTE *data, int len, int  *a_ipErrorData);

__declspec(dllexport) int __cdecl USB_In_EP3 (BYTE *data, int len);
BYTE Gaming_checksum (BYTE *data, int len);
__declspec(dllexport) DEBUG_MESSAGE __cdecl Darfon_Get_firmware_version (void);
__declspec(dllexport) int __cdecl Set_Test_Mode(int imode, int ispeed);
